package br.edu.ufcg.lsd.wbis.ui.client.ui.loggedin.admin.home;

import br.edu.ufcg.lsd.wbis.ui.client.beans.UserInfo;
import br.edu.ufcg.lsd.wbis.ui.client.ui.loggedin.admin.GenericTabPanel;
import br.edu.ufcg.lsd.wbis.ui.client.ui.management.InfoManager;

import com.gwtext.client.widgets.TabPanel;

/**
 * @author Renato Miceli
 */
public class HomeTab extends GenericTabPanel {

	private static final String TITLE = "Home";

	public HomeTab(TabPanel centerPanel, InfoManager<UserInfo> infoManager) {

		this.setTitle(TITLE);
		this.setClosable(false);

		this.add(new HomePortal(centerPanel, infoManager));
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public String getTabId() {
		return TITLE;
	}

}